const express=require("express");
var controller=require("../controller/user.server.controller")
var router=express.Router();

router.route("/users")
.get(controller.findAllUsers)
.post(controller.addUser);

router.route("/users/:id")
.put(controller.updateUser)
.delete(controller.deleteUser);
module.exports=router;